<?php
class Controller_Report extends Controller_Template
{
	//Constructor
	public function __construct()
	{
		parent::__construct();
		$this->selfModel = new Model_Report();
	}
	
	//Methods
	public function index()
	{
		$title = "Report";
		$requiredField = '<span class="red">*</span> Required field</br>';
		
		require 'View/header.tpl';
		require 'View/menu.tpl';
		require 'View/report/index.tpl';
		require 'View/footer.tpl';
		//return true;
	}
	public function procedurePerformedReport($startDate, $endDate)
	{
		$title = "Procedure Performed Report";
		$requiredField = '<span class="red">*</span> Required field</br>';
		
		$allProceduresPerformed = $this->selfModel->generateProcedurePerformedCountReport($startDate,$endDate);
		
		require 'View/header.tpl';
		require 'View/menu.tpl';
		require 'View/report/index.tpl';
		require 'View/footer.tpl';
		//return false;
	}
	public function inventoryNeededReport($startDate, $endDate)
	{
		$title = "Inventory Needed Report";
		$requiredField = '<span class="red">*</span> Required field</br>';
		
		$allInventoryNeeded = $this->selfModel->generateInventoryNeededReport($startDate,$endDate);
		
		require 'View/header.tpl';
		require 'View/menu.tpl';
		require 'View/report/index.tpl';
		require 'View/footer.tpl';
		//return true;
	}
	public function inventoryUsedReport($startDate, $endDate)
	{
		$title = "Inventory Used Report";
		$requiredField = '<span class="red">*</span> Required field</br>';
	
		$allInventoryUsed = $this->selfModel->generateInventoryUsedReport($startDate,$endDate);
	
		require 'View/header.tpl';
		require 'View/menu.tpl';
		require 'View/report/index.tpl';
		require 'View/footer.tpl';
		//return false;
	}
	public function appointmentHoursReport($startDate, $endDate)
	{
		$title = "Appointment Hours Report";
		$requiredField = '<span class="red">*</span> Required field</br>';
	
		$allAppointmentHours = $this->selfModel->generateAppointmentHoursReport($startDate,$endDate);
	
		require 'View/header.tpl';
		require 'View/menu.tpl';
		require 'View/report/index.tpl';
		require 'View/footer.tpl';
		//return true;
	}
	
}